﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SIAKADCORE.Models
{
    /// <summary>
    /// Kelas DetailPertanyaan [dbo].[detail_pertanyaan]
    /// </summary>
    public class DetailPertanyaan
    {
        #region Constants
        
        public const int IdLength = 10;
        
        public const string IdPrefix = "DP";
        
        public const string TableName = "[dbo].[detail_pertanyaan]";
        
        public const string ColumnNameIdDetailPertanyaan = "[id_detail_pertanyaan]";
        
        public const string ColumnNameIdPemilihanPertanyaan = "[id_pemilihan_pertanyaan]";
        
        public const string ColumnNameIdPengambilanMatakuliah = "[id_pengambilan_matakuliah]";
        public const string ColumnNameIdJawaban = "[id_jawaban]";
        #endregion



        #region Fields
        /// <summary>
        /// [id_detail_pertanyaan] CHAR(10) NOT NULL
        /// </summary>
        private string idDetailPertanyaan;
        /// <summary>
        /// [id_pertanyaan] CHAR(10) NOT NULL
        /// </summary>
        private string idPemilihanPertanyaan;
        /// <summary>
        /// [id_pengambilan_matakuliah] CHAR(10) NOT NULL
        /// </summary>
        private string idDetailPengambilanMatakuliah;
        private string idJawaban;
        #endregion



        #region Properties
        /// <summary>
        /// [id_detail_pertanyaan] CHAR(10) NOT NULL
        /// </summary>
        public string IdDetailPertanyaan
        {
            get { return this.idDetailPertanyaan; }
            set { this.idDetailPertanyaan = value; }
        }

        /// <summary>
        /// [id_pertanyaan] CHAR(10) NOT NULL
        /// </summary>
        public string IdPemilihanPertanyaan
        {
            get { return this.idPemilihanPertanyaan; }
            set { this.idPemilihanPertanyaan = value; }
        }

        /// <summary>
        /// [id_detail_pengambilan_matakuliah] CHAR(10) NOT NULL
        /// </summary>
        public string IdDetailPengambilanMatakuliah
        {
            get { return this.idDetailPengambilanMatakuliah; }
            set { this.idDetailPengambilanMatakuliah = value; }
        }

        public string IdJawaban
        {
            get { return this.idJawaban; }
            set { this.idJawaban = value; }
        }

        #endregion

        #region Constructors
        /// <summary>
        /// Konstruktor
        /// </summary>
        public DetailPertanyaan()
        {

        }

     
        public DetailPertanyaan(string idDetailPertanyaan, string idPemilihanPertanyaan, string idJawaban, string idDetailPengambilanMatakuliah)
        {
            this.idDetailPertanyaan = idDetailPertanyaan;
            this.idPemilihanPertanyaan = idPemilihanPertanyaan;
            this.idDetailPengambilanMatakuliah = idDetailPengambilanMatakuliah;
            this.idJawaban = idJawaban;
        }
        #endregion

        public override string ToString()
        {
            return string.Format("ID_DETAIL_PERTANYAAN: {0} | ID_PERTANYAAN: {1} | ID_DETAIL_PENGAMBILAN_MATAKULIAH: {2} | ID_JAWABAN: {3}", this.idDetailPertanyaan, this.idPemilihanPertanyaan, this.idDetailPengambilanMatakuliah, this.idJawaban);
        }
    }
      
}
